//用于展示发现信息

import React, { PureComponent } from 'react'
import { View, Text, StyleSheet, TouchableOpacity, FlatList, Image } from 'react-native'
import { screen, system } from '../../common'
import { color } from '../../widget'
import FindCell from './FindCell'

type Props = {
    info: Object,
    onFindItem: Function,
}
type State={

}
class FindItem extends PureComponent<Props> {
    renderItem = (rowData) => {
        return (
            <FindCell
            info={rowData}
            />
           
        )
    }
    render() {
        let info = this.props.info
        let onFindItem=this.props.onFindItem
        let id =info.id
        return (
            <View style={{ flex: 1 }}>
                <FlatList
                    data={[info]}
                    renderItem={this.renderItem}
                    keyExtractor={(item, index) => id}
                />
            </View>

        )
    }
}

const styles = StyleSheet.create({


})

export default FindItem
